<template>
  <div>
    <router-view :key="$route.fullPath"></router-view>
  </div>
</template>

<script>
import dingMixin from  '@/mixins/ding'
import * as dd from 'dingtalk-jsapi'
export default {
  mixins: [dingMixin],
  watch: {
    $route (to, from) {
      if(to.meta.title) this.mobileSetTitle(to.meta.title);
    }
  },
  mounted() {
    if(!this.isPC()) {
      this.$router.replace({ name: 'mmpb-yjhz'})
    }else {
      this.$router.replace({ name: 'nmpb'})
    }
  }
}
</script>
